package com.eternal.permission.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * 权限类型
 * @author Eternal
 * @Title: PTypeEnum
 * @ProjectName notest
 * @Description: TODO
 * @date 2018/9/6 17:54
 */
public enum PTypeEnum implements IEnum {
    MODEL("1","模块权限"),
    MENU("2","菜单权限"),
    BUTTON("3","按钮权限"),
    DATE("4","数据权限");

    private String pType;
    private String describe;


    PTypeEnum(String isOpen, String describe) {
        this.pType = isOpen;
        this.describe = describe;
    }

    @Override
    public Serializable getValue() {
        return this.pType;
    }

    @JsonValue
    public String getDescribe() {
        return describe;
    }
}
